package org.prem.hibernate;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="STUDENT13")
public class Student13 {

	@Id @GeneratedValue
	private int student_id;
	
	@Column(name="FULL_NAME",nullable=false)
	private String student_name;
	
	@ManyToMany(cascade=CascadeType.ALL)
	private Set<StudentCertification13> studentCertification13 = new HashSet<StudentCertification13>();
	
	public int getStudent_id() {
		return student_id;
	}

	public void setStudent_id(int student_id) {
		this.student_id = student_id;
	}
	
	public String getStudent_name() {
		return student_name;
	}

	public void setStudent_name(String student_name) {
		this.student_name = student_name;
	}

	public Set<StudentCertification13> getStudentCertification13() {
		return studentCertification13;
	}

	public void setStudentCertification13(
			Set<StudentCertification13> studentCertification13) {
		this.studentCertification13 = studentCertification13;
	}

}
